const runtime.maxAlloc
18 uses
runtime (current package)
arena.go#L624: if overflow || n < 0 || mem > maxAlloc {
chan.go#L84: if overflow || mem > maxAlloc-hchanSize || size < 0 {
malloc.go#L219: maxAlloc = (1 << heapAddrBits) - (1-_64bit)*1
malloc.go#L1347: if overflow || mem > maxAlloc || n < 0 {
map.go#L307: if overflow || mem > maxAlloc {
slice.go#L43: if overflow || tomem > maxAlloc || tolen < 0 {
slice.go#L90: if overflow || mem > maxAlloc || len < 0 || len > cap {
slice.go#L97: if overflow || mem > maxAlloc || len < 0 {
slice.go#L216: overflow = uintptr(newcap) > maxAlloc
slice.go#L222: overflow = uintptr(newcap) > maxAlloc/goarch.PtrSize
slice.go#L235: overflow = uintptr(newcap) > (maxAlloc >> shift)
slice.go#L260: if overflow || capmem > maxAlloc {
slice.go#L351: if uintptr(len) > maxAlloc {
string.go#L285: if uintptr(size) > maxAlloc/4 {
string.go#L304: if n < 0 || uintptr(n) > maxAlloc {
string.go#L517: p := (*[maxAlloc/2 - 1]byte)(unsafe.Pointer(s))
string.go#L555: p := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(s))
string.go#L572: str := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(strw))
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |